// 游戏相关类型定义
export interface FruitType {
  id: number;
  name: string;
  emoji: string;
  color: string;
  radius: number;
  score: number;
  mass: number;
}

export interface GameFruit {
  id: string;
  type: FruitType;
  body: Matter.Body;
  element?: HTMLElement;
}

export interface GameState {
  score: number;
  highScore: number;
  currentFruit: FruitType;
  nextFruit: FruitType;
  isGameOver: boolean;
  isPlaying: boolean;
  fruits: GameFruit[];
}

export interface Position {
  x: number;
  y: number;
}

export interface Particle {
  id: string;
  x: number;
  y: number;
  vx: number;
  vy: number;
  color: string;
  size: number;
  life: number;
  maxLife: number;
}